import tensorflow as tf
import tensorflow_datasets.core.transform
from dateset import  *
model=tf.keras.Sequential([
    tf.keras.layers.Conv1D(3,1,input_shape=(8,1),activation="relu"),
    tf.keras.layers.MaxPool1D(2,1),
    tf.keras.layers.Flatten(),
    tf.keras.layers.Dense(256,activation="relu"),
    tf.keras.layers.Dense(256,activation="relu"),
    tf.keras.layers.Dense(128,activation="relu"),
    tf.keras.layers.Dense(1,activation="linear")
])
model.compile(optimizer="adam",loss="mean_squared_error")

model.fit(x_train,y_train,validation_data=(x_test,y_test),epochs=10,batch_size=70)

